﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO {
    /// <summary>
    /// 邀请升级
    /// </summary>
    public class token_up_grade_dto {
        public long id { get; set; }
        /// <summary>
        /// 邀请人
        /// </summary>
        public long merchant_id { get; set; }
        /// <summary>
        /// 邀请人实名
        /// </summary>
        public string merchant_name { get; set; }
        /// <summary>
        /// 邀请人账号
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 申请角色
        /// </summary>
        public UserType grade { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        public string grade_des { get; set; }
        /// <summary>
        /// 开通账号
        /// </summary>
        public string apply_mobile { get; set; }
        /// <summary>
        /// 申请用户
        /// </summary>
        public long apply_merchant_id { get; set; }
        /// <summary>
        ///转账凭证
        /// </summary>
        public string transfer_voucher { get; set; }
        /// <summary>
        /// 市分公司
        /// </summary>
        public long city_company_merchant_id { get; set; }
        /// <summary>
        /// 市分公司 账号
        /// </summary>
        public string city_company_mobile { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime apply_time { get; set; }
        /// <summary>
        /// 通过时间
        /// </summary>
        public DateTime? audit_time { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public EUpGradeAudit e_up_grade_audit { get; set; }
        /// <summary>
        /// 状态描述
        /// </summary>
        public string e_up_grade_audit_desc { get; set; }
        /// <summary>
        /// 升级金额
        /// </summary>
        public decimal amount { get; set; }
    }

    public class token_up_grade_maker_dto {
        /// <summary>
        /// 收款记录Id
        /// </summary>
        public long charge_id { get; set; }
        /// <summary>
        /// 商户Id
        /// </summary>
        public long merchant_id { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string real_name { get; set; }
        /// <summary>
        /// 购买价格
        /// </summary>
        public decimal buy_price { get; set; }
        /// <summary>
        /// 购买时间
        /// </summary>
        public long buy_time_value { get; set; }
        /// <summary>
        /// 购买时间
        /// </summary>
        public DateTime buy_time { get; set; }
        /// <summary>
        /// 状态（1：未处理，2：已处理）
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 状态描述
        /// </summary>
        public string status_title {
            get
            {
                if (this.status == 2)
                    return "已处理";
                else
                    return "未处理";

            }
        }
    }
}
